<template>
  <img alt="Vue logo" src="./assets/logo.png">
  <HelloWorld msg="Welcome to Your Vue.js App"/>
  
  <MyComponents msg="牛顶顶1号"/>
  <input v-model.lazy="message" placeholder="edit me"/>
  <p>Message is : {{message}}</p>
  <button type="button" @click="onBtnClick">修改</button>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import MyComponents from './components/myComponents.vue'

export default {
  name: 'App',
  components: {
    HelloWorld,
	MyComponents
  },
  data() {
  	return{
		message:"",
	}
  },
  methods:{
	  onBtnClick(){
		  this.message = "niudingding"
	  }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
